<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .wrap {
            width: 400px;
            height: 200px;
            background: aqua;
        }
    </style>
</head>

<body>
    <div class="wrap one two three" id="divv" data-text="texxxtttt" data-height="heiiiigggght" asdd='assddd'
        style='height:300px'>
        1233211234567
    </div>
</body>
<script>

    var wrap = document.querySelector('.wrap')
    // console.dir(wrap)

    wrap.id = 'DIV'
    // console.log(wrap.textContent)
    // console.log(wrap.style)

    console.log(wrap.outerHTML)
    // wrap.outerHTML = 'string'

    wrap.classList.value = 'first second wrap'
</script>

</html>